import {
    sm4 as SM4
} from 'sm-crypto';
const key = '696A75726B62646C686D6B6C71616377'
let sm4Config = {
    //配置sm4参数
    padding: 'pkcs#5',
    mode: 'ecb'
};
// 加密
export function GM_SM4Encrypt(data) {
    let encryptData = SM4.encrypt(data,key,sm4Config)
    return  encryptData
}
// 解密
export function GM_SM4Decrypt(data) {
    let decryptData = SM4.decrypt(data,key,sm4Config)
    return  decryptData
}